package com.gukun.springboot.tdengine.domain.select;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * @author zcy
 */
@Data
public class SelectTask {
    @TableId
    private String id;
    @TableField(value = "name")
    private String name;
    /**
     * 1 历史值 2 实时值
     */
    @TableField(value = "type")
    private int type = 1;
    @TableField(value = "start_index")
    private Long startIndex;
    @TableField(value = "tag_num")
    private Long tagNum;
    @TableField(value = "prefix")
    private String prefix;
    @TableField(value = "start_time")
    private String startTime;
    @TableField(value = "end_time")
    private String endTime;
    @TableField(value = "host")
    private String host;
    @TableField(value = "port")
    private int port = 6041;
    @TableField(value = "user")
    private String user = "root";
    @TableField(value = "password")
    private String password = "taosdata";
    @TableField(value = "db_name")
    private String dbName;
    /**
     * 最后一次日志
     */
    @TableField(value = "last_log")
    private String lastLog;
    /**
     * 任务并发数量
     */
    @TableField(value = "concurrent_num")
    private int concurrentNum = 1;
    /**
     * 时间间隔
     */
    @TableField(value = "time_interval")
    private int timeInterval;
    /**
     * 分组id
     */
    @TableField(value = "group_id")
    private int groupId;
    /**
     * 状态 0 停止 1 运行中
     */
    @TableField(value = "status")
    private int status = 0;

    @TableField(value = "cur_host")
    private String curHost;

    @TableField(value = "last_time")
    private String lastTime;

    @TableField(value = "create_time")
    private String createTime;
}
